﻿using System;

using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.Handlers;

namespace AMC.SubstitutionCache.Drivers
{
    public class ContentShapeIgnoreGroupResult : ContentShapeResult
    {
        public ContentShapeIgnoreGroupResult(string shapeType, string prefix, Func<BuildShapeContext, dynamic> shapeBuilder)
            : base(shapeType, prefix, shapeBuilder) { }

        public override void Apply(BuildDisplayContext context)
        {
            OnGroup(context.GroupId);

            base.Apply(context);
        }

        public override void Apply(BuildEditorContext context)
        {
            OnGroup(context.GroupId);

            base.Apply(context);
        }
    }
}